package com.etc.test;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.etc.entity.Doctor;
import com.etc.entity.Doctorlogin;
import com.etc.service.DoctorService;
import com.etc.service.DoctorloginService;

/**
 * 医生登录测试类
 * 
 * @author 小白
 *
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = { "classpath:applicationContext.xml", "classpath:mybatis-config.xml" })
public class DoctorloginTestJUnit2 {
	@Autowired
	private DoctorloginService doctorloginService;
	
	/**
	 * 医生登录
	 * 
	 */
	@Test
	public void getDoctorlogin() {
		Doctorlogin list= doctorloginService.selectByPrimaryKey(120, "123");
		System.out.println(list);

	}

}
